package com.leo.biz.service.taskmanager;

import com.leo.biz.service.datakeep.FetchTaskManager;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by leo on 2016/6/30.
 */
public class CommonJob implements Job {
    @Autowired
    private FetchTaskManager fetchTaskManager;


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("Its Time to do a test");
    }

    public void run(){
        fetchTaskManager.run();
    }
}
